class lzu::prockill (
  $enable_prockill = true,
){
  if $enable_prockill {
    file{'/usr/local/sbin/process-kill.sh':
      mode       =>  '755',
      owner      =>  'root',
      group      =>  'root',
      source     =>  "puppet:///modules/${module_name}/process-kill.sh",
    }
    file{'/usr/local/sbin/warn':
      mode       =>  '755',
      owner      =>  'root',
      group      =>  'root',
      source     =>  "puppet:///modules/${module_name}/warn",
    }
    file{'/usr/local/sbin/warn_message':
      mode       =>  '755',
      owner      =>  'root',
      group      =>  'root',
      source     =>  "puppet:///modules/${module_name}/warn_message",
    }


    cron{'process-kill':
      command => "/usr/local/sbin/process-kill.sh",
      user    => 'root',
      minute  => '*/15',
      hour    => '*',
    }
  }
  else {
    cron{'process-kill':
      ensure => absent,
    }
    file{'/usr/local/sbin/process-kill.sh':
     ensure => absent,
    }
  }
}
